<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{ajustarParametrosAlertas2.page1}" id="page1">
            <ui:html binding="#{ajustarParametrosAlertas2.html1}" id="html1">
                <ui:head binding="#{ajustarParametrosAlertas2.head1}" id="head1">
                    <ui:link binding="#{ajustarParametrosAlertas2.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{ajustarParametrosAlertas2.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{ajustarParametrosAlertas2.form1}" id="form1">
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:label binding="#{ajustarParametrosAlertas2.label1}" id="label1" style="left: 144px; top: 168px; position: absolute" text="Producto:"/>
                        <ui:label binding="#{ajustarParametrosAlertas2.label2}" id="label2" style="left: 144px; top: 192px; position: absolute" text="Sublinea:"/>
                        <ui:label binding="#{ajustarParametrosAlertas2.label3}" id="label3" style="left: 144px; top: 216px; position: absolute" text="Tipo Solicitud:"/>
                        <ui:staticText binding="#{ajustarParametrosAlertas2.staticText1}" id="staticText1" style="left: 240px; top: 168px; position: absolute" text="#{ajustarParametrosAlertas2.sct0004DataProvider.value['DSCRPCION']}"/>
                        <ui:staticText binding="#{ajustarParametrosAlertas2.staticText2}" id="staticText2" style="left: 240px; top: 192px; position: absolute" text="#{ajustarParametrosAlertas2.sct0019DataProvider.value['DSCRPCIONSBLNEA']}"/>
                        <ui:staticText binding="#{ajustarParametrosAlertas2.staticText3}" id="staticText3" style="left: 240px; top: 216px; position: absolute" text="#{ajustarParametrosAlertas2.sct0023DataProvider.value['ESTDO']}"/>
                        <ui:button action="#{ajustarParametrosAlertas2.menu_action}" binding="#{ajustarParametrosAlertas2.menu}" id="menu" immediate="true"
                            mini="true" primary="true" style="left: 71px; top: 120px; position: absolute; width: 59px" text="Cerrar"/>
                        <ui:button action="#{ajustarParametrosAlertas2.back_action}" binding="#{ajustarParametrosAlertas2.back}" id="back" immediate="true"
                            mini="true" primary="true" style="left: 143px; top: 120px; position: absolute; width: 71px" text="Regresar"/>
                        <ui:staticText binding="#{ajustarParametrosAlertas2.staticText4}" id="staticText4"
                            style="left: 72px; top: 456px; position: absolute; text-align: justify; width: 814px" text="Al vencer los dos primeros tiempos se emitirán alertas. En el caso de vencerse el tercero se emitirá una alerta, y se enviará una copia a un usuario superior asignado. Complete todas las casillas y lugo presione el boton &quot;Guardar&quot;. Si desea iniciar de nuevo, presione el boton &quot;Limpiar todo&quot;."/>
                        <ui:staticText binding="#{ajustarParametrosAlertas2.titulo1}" id="titulo1"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 288px; top: 120px; position: absolute" text="Ajustar Parametros de Alertas"/>
                        <ui:panelLayout binding="#{ajustarParametrosAlertas2.layoutPanel3}" id="layoutPanel3" panelLayout="flow" style="left: 120px; top: 264px; position: absolute">
                            <ui:table augmentTitle="false" binding="#{ajustarParametrosAlertas2.table2}" id="table2" style="width: 430px"
                                title="Tiempos actuales" width="430">
                                <script><![CDATA[
                                
function Tempos(tUno,tDos,tTres){
        var Texto = document.getElementById("form1:textField7");
        Texto.innerHTML = tUno;
}        
/* ----- Functions for Table Preferences Panel ----- */
/*
 * Toggle the table preferences panel open or closed
 */
function togglePreferencesPanel() {
  var table = document.getElementById("form1:table2");
  table.toggleTblePreferencesPanel();
}
/* ----- Functions for Filter Panel ----- */
/*
 * Return true if the filter menu has actually changed,
 * so the corresponding event should be allowed to continue.
 */
function filterMenuChanged() {
  var table = document.getElementById("form1:table2");
  return table.filterMenuChanged();
}
/*
 * Toggle the custom filter panel (if any) open or closed.
 */
function toggleFilterPanel() {
  var table = document.getElementById("form1:table2");
  return table.toggleTableFilterPanel();
}
/* ----- Functions for Table Actions ----- */
/*
 * Initialize all rows of the table when the state
 * of selected rows changes.
 */
function initAllRows() {
  var table = document.getElementById("form1:table2");
  table.initAllRows();
}
/*
 * Set the selected state for the given row groups
 * displayed in the table.  This functionality requires
 * the 'selectId' of the tableColumn to be set.
 *
 * @param rowGroupId HTML element id of the tableRowGroup component
 * @param selected Flag indicating whether components should be selected
 */
function selectGroupRows(rowGroupId, selected) {
  var table = document.getElementById("form1:table2");
  table.selectGroupRows(rowGroupId, selected);
}
/*
 * Disable all table actions if no rows have been selected.
 */
function disableActions() {
  // Determine whether any rows are currently selected
  var table = document.getElementById("form1:table2");
  var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
  // Set disabled state for top actions
  document.getElementById("form1:table2:tableActionsTop:deleteTop").setDisabled(disabled);
  // Set disabled state for bottom actions
  document.getElementById("form1:table2:tableActionsBottom:deleteBottom").setDisabled(disabled);
}]]></script>
                                <ui:tableRowGroup binding="#{ajustarParametrosAlertas2.tableRowGroup2}" id="tableRowGroup2" rows="10"
                                    sourceData="#{ajustarParametrosAlertas2.sct0021DataProvider}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{ajustarParametrosAlertas2.tableColumn5}" headerText="Etapa" id="tableColumn5">
                                        <ui:hyperlink action="#{ajustarParametrosAlertas2.hyperlink1_action}" binding="#{ajustarParametrosAlertas2.hyperlink1}"
                                            id="hyperlink1" immediate="true" text="#{ajustarParametrosAlertas2.cumple}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{ajustarParametrosAlertas2.tableColumn6}" headerText="Tiempo 1era Fase (en horas)"
                                        id="tableColumn6" sort="CDGOPRDCTO">
                                        <ui:staticText binding="#{ajustarParametrosAlertas2.staticText7}" id="staticText7" text="#{currentRow.value['CDGOPRDCTO']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{ajustarParametrosAlertas2.tableColumn7}" headerText="Tiempo 2a Fase (en horas)" id="tableColumn7" sort="CDGOSBLNEA">
                                        <ui:staticText binding="#{ajustarParametrosAlertas2.staticText8}" id="staticText8" text="#{currentRow.value['CDGOSBLNEA']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{ajustarParametrosAlertas2.tableColumn8}" headerText="Tiempo re-asignar (en horas)"
                                        id="tableColumn8" sort="CDGOTPOSLCTUD">
                                        <ui:staticText binding="#{ajustarParametrosAlertas2.staticText9}" id="staticText9" text="#{currentRow.value['CDGOTPOSLCTUD']}"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:panelLayout>
                        <ui:panelLayout binding="#{ajustarParametrosAlertas2.layoutPanel1}" id="layoutPanel1" panelLayout="flow" style="left: 576px; top: 264px; position: absolute">
                            <ui:messageGroup binding="#{ajustarParametrosAlertas2.messageGroup1}" id="messageGroup1"/>
                        </ui:panelLayout>
                        <ui:alert binding="#{ajustarParametrosAlertas2.alert1}" id="alert1" style="left: 240px; top: 528px; position: absolute; width: 250px"/>
                        <ui:panelLayout binding="#{ajustarParametrosAlertas2.layoutPanel2}" id="layoutPanel2"
                            style="border: 1px solid #ffcc00; height: 85px; left: 280px; top: 528px; position: absolute; width: 432px; -rave-layout: grid" visible="false">
                            <ui:staticText binding="#{ajustarParametrosAlertas2.staticTextEtapa}" id="staticTextEtapa" style="color: rgb(0, 0, 204); font-size: 14px; left: 7px; top: 54px; position: absolute; text-align: center; vertical-align: middle"/>
                            <ui:button action="#{ajustarParametrosAlertas2.button1_action}" binding="#{ajustarParametrosAlertas2.button1}" id="button1"
                                mini="true" primary="true" style="left: 351px; top: 54px; position: absolute; width: 59px" text="Guardar"/>
                            <ui:textField binding="#{ajustarParametrosAlertas2.textField7}" columns="5"
                                converter="#{ajustarParametrosAlertas2.integerConverter1}" id="textField7" required="true"
                                style="left: 112px; top: 54px; position: absolute" validator="#{ajustarParametrosAlertas2.lengthValidator1.validate}"/>
                            <ui:textField binding="#{ajustarParametrosAlertas2.textField8}" columns="5"
                                converter="#{ajustarParametrosAlertas2.integerConverter1}" id="textField8" required="true"
                                style="left: 184px; top: 54px; position: absolute" validator="#{ajustarParametrosAlertas2.lengthValidator1.validate}"/>
                            <ui:textField binding="#{ajustarParametrosAlertas2.textField9}" columns="5"
                                converter="#{ajustarParametrosAlertas2.integerConverter1}" id="textField9" required="true"
                                style="left: 256px; top: 54px; position: absolute" validator="#{ajustarParametrosAlertas2.lengthValidator1.validate}"/>
                            <ui:label binding="#{ajustarParametrosAlertas2.label4}" id="label4" style="left: 119px; top: 11px; position: absolute" text="Modificando Tiempos de alertas"/>
                            <ui:label binding="#{ajustarParametrosAlertas2.label5}" id="label5"
                                style="font-size: 10px; left: 120px; top: 36px; position: absolute" text="1ra Fase"/>
                            <ui:label binding="#{ajustarParametrosAlertas2.label6}" id="label6"
                                style="font-size: 10px; left: 192px; top: 36px; position: absolute" text="2da Fase"/>
                            <ui:label binding="#{ajustarParametrosAlertas2.label7}" id="label7"
                                style="font-size: 10px; left: 264px; top: 36px; position: absolute" text="3ra Fase"/>
                            <ui:label binding="#{ajustarParametrosAlertas2.label8}" id="label8"
                                style="font-size: 10px; left: 10px; top: 37px; position: absolute" text="Etapa"/>
                            <ui:hyperlink action="#{ajustarParametrosAlertas2.hyperlink2_action}" binding="#{ajustarParametrosAlertas2.hyperlink2}"
                                id="hyperlink2" immediate="true" style="font-size: 10px; left: 380px; top: 1px; position: absolute" text="Cancelar"/>
                        </ui:panelLayout>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
